﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLLWeb
{
    public partial class qgzx_company : IBLL.Iqgzx_companyBLL
    {
        public MODEL.qgzx_company Login(string LoginName, string LoginPassword)
        {
            //调用业务层方法 根据登陆名查询
            MODEL.qgzx_company user = base.GetListBy(p => p.LoginName == LoginName).Select(u => u.ToPOCO()).SingleOrDefault();
            //判断是否登陆成功
            if (user != null && user.LoginPassword == LoginPassword)//Common.DataHelper.MD5(strPwd))
            {
                return user;
            }
            return null;
        }
    }
}
